<%@page contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/Css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/Css/style.css" />
    <script type="text/javascript" src="${pageContext.request.contextPath}/Js/jquery.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/Js/jquery.sorted.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/Js/bootstrap.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/Js/ckform.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/Js/common.js"></script> 
    <script type="text/javascript" src="${pageContext.request.contextPath }/jq/jquery-3.2.1.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath }/jq/jquery-form.js"></script>

    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }


    </style>
</head>
<body>
<form method="post" class="definewidth m20" id="node_edit" action="${pageContext.request.contextPath}/node/some4.do">
<input type="hidden" name="id" value="${id }" />
<input type="hidden" name="pageno" value="${pageno }" id="pageno"/>
<table class="table table-bordered table-hover ">
    <tr>
        <td width="10%" class="tableleft">机构号</td>
        <td><input type="text" name="code" id="code" value="${code }"/></td>
    </tr>
    <tr>
        <td class="tableleft">机构名称</td>
        <td ><input type="text" name="name" id="name" value="${name }"/></td>
    </tr>  
    <tr>
        <td class="tableleft">状态</td>
        <td >
            <input type="radio" name="state" value="1" checked id="state"/> 启用
           <input type="radio" name="state" value="0" id="state"/> 禁用
        </td>
    </tr>
    <tr>
        <td class="tableleft"></td>
        <td>
            <button  class="btn btn-primary" type="submit" onclick="node_edit()">保存</button> &nbsp;&nbsp;<button type="button" class="btn btn-success" name="backid" id="backid">返回列表</button>
        </td>
    </tr>
</table>
</form>
</body>
</html>
<script>
    $(function () {       
		$('#backid').click(function(){
				window.location.href="${pageContext.request.contextPath}/node/some2.do?pageno=1";
		 });
    });
    
    function node_edit(){
    	var pageno=document.getElementById("pageno").value;
    	document.getElementById("node_edit").action="${pageContext.request.contextPath}/node/some4.do?pageno="+pageno;
    }

    
   
</script>